package com.honeycomb.db.dao;


import java.util.Stack;

import com.honeycomb.common.PositionInfo;
import com.honeycomb.common.base.dao.BaseDao;
import com.honeycomb.user.dto.UserLoginInfo;
import com.honeycomb.user.dto.UserinfoDto;

/**
 * 用户dao接口
 * 
 * @author Wangyu
 */
public interface UserinfoDao extends BaseDao{

	
	UserinfoDto getUserByIdAndPwd(UserLoginInfo loginInfo);
	
	UserinfoDto getUser(Long user_id);

	boolean doCheckUserIdAlreadyExist(String loginId);

	UserinfoDto doAdduserinfo(UserLoginInfo loginInfo, UserinfoDto userInfo);

	boolean doUpdate01(UserinfoDto user);

	boolean doUpdate02(Long userId, UserLoginInfo loginInf);

	void doAddPosition(Long userId, PositionInfo position);

	Stack<PositionInfo> getFavourPositions(Long userId);
	
}
